package com.design_pattern.composite;

import java.util.List;

public class BranchNode extends Node {
    private List<Node> nodeList;

    public BranchNode(Node node) {
        super(node.getId(), node.getPid(), node.getName());
    }

    public List<Node> getNodeList() {
        return nodeList;
    }

    public void setNodeList(List<Node> nodeList) {
        this.nodeList = nodeList;
    }
}
